package com.google.code.twithis.core.persistence.dao;

import net.rim.device.api.system.PersistentObject;
import net.rim.device.api.system.PersistentStore;

public abstract class AbstractDao {

	private PersistentObject persistentObject;
	
	public AbstractDao() {
		persistentObject = PersistentStore.getPersistentObject(getPersistentObjectId());
	}

	protected abstract long getPersistentObjectId();

	public PersistentObject getPersistentObject() {
		return persistentObject;
	}
	
}
